package session;

import entities.Coupon;
import org.junit.*;

import java.math.BigDecimal;

import static junit.framework.Assert.assertTrue;

/**
 * Created with IntelliJ IDEA.
 * User: kris-pc
 * Date: 10/21/13
 * Time: 5:01 PM
 * To change this template use File | Settings | File Templates.
 */
public class CouponManagerTest {

    @BeforeClass
    public static void setUpBeforeClass()  throws Exception
    {

    }

    @AfterClass
    public static void tearDownAfterClass() throws Exception
    {

    }

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void findCouponById() throws Exception {

        Coupon c = new Coupon(BigDecimal.valueOf(9),5, "alex", "test");
        assertTrue(c.getId()==BigDecimal.valueOf(9));

    }

    @Test
    public void saveNewCoupon(Coupon coupon) throws Exception
    {
         ICouponManager manager = new CouponManager();
         //make dao

        for(int i=100;i<100;i++)
        {

        }



    }
}
